import i18n from '@/i18n'
import { RenderLinkedBotsAction, RenderTimeFormat } from './element'

export const renderLinkedBotColumns = (showAllTenant) => Object.freeze([
  {
    field: 'name',
    headerText: i18n.t('custom.dataset.name'),
    width: 100
  },
  {
    field: 'description',
    headerText: i18n.t('custom.accounting.description'),
    width: 130
  },
  {
    field: 'enable',
    headerText: i18n.t('custom.bots.trigger'),
    width: 100
  },
  {
    field: 'alert',
    headerText: i18n.t('custom.bots.alert'),
    width: 100
  },
  {
    field: 'updateTime',
    headerText: i18n.t('custom.reports.updateDate'),
    width: 100,
    template: RenderTimeFormat
  },
  {
    field: 'tenantCode',
    headerText: 'Client Code',
    width: 100,
    visible: showAllTenant
  },
  {

    width: 120,
    template: RenderLinkedBotsAction
  }

])
